package com.yg.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yg.entity.readAndWriteTemplates.TeacherRead;
import com.yg.entity.singleEntity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 对应sheet01和其他表，此表为教师表 Mapper 接口
 * </p>
 *
 * @author YingGu
 * @since 2020-11-04
 */
public interface TeacherMapper extends BaseMapper<Teacher> {

    //查询教师所有信息
    IPage<TeacherRead> selectAllTeacherInfo(IPage<TeacherRead> iPage, @Param("vipByJwtToken") String vipByJwtToken, @Param("teacherIdByJwtToken") String teacherIdByJwtToken);

    //条件查询
    IPage<TeacherRead> teacherConditionalQuery(IPage<TeacherRead> iPage, @Param("teacherRead") TeacherRead teacherRead, @Param("vipByJwtToken") String vipByJwtToken, @Param("teacherIdByJwtToken") String teacherIdByJwtToken);

    //条件查询导出
    List<TeacherRead> writeTeacherConditionalQuery(@Param("teacherRead") TeacherRead teacherRead, @Param("vipByJwtToken") String vipByJwtToken, @Param("teacherIdByJwtToken") String teacherIdByJwtToken);

    List<Integer> getRoleNum();
}
